<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    <!--v-bind:xxx让元素的xxx属性和变量进行绑定-->
    <a v-bind:href="url">超链接</a>
    <!--:xxx 简写-->
    <a :href="url">超链接2</a>
    <input type="text" v-model="url">
    <hr>
    <img :src="url" alt="">
</div>
<!--引入vue框架-->
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script>
    let v=new Vue({
        el:"div",
        data:{
            url:"http://www.baidu.com"
        }
    })
</script>
</body>
</html>